﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CommunitySystem.Model
{
    [Serializable]
    [DataContract]
    public class DictionaryModel
    {

        private int _Id = 0;
        [DataMember]
        public int Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    _Id = value;

                }
            }
        }

        private int _Type = 0;
        [DataMember]
        public int Type
        {
            get
            {
                return _Type;
            }
            set
            {
                if (_Type != value)
                {
                    _Type = value;

                }
            }
        }

        private bool _IsTree = false;
        [DataMember]
        public bool IsTree
        {
            get
            {
                return _IsTree;
            }
            set
            {
                if (_IsTree != value)
                {
                    _IsTree = value;

                }
            }
        }

        private string _SQL = "";
        [DataMember]
        public string SQL
        {
            get
            {
                return _SQL;
            }
            set
            {
                if (_SQL != value)
                {
                    _SQL = value;

                }
            }
        }



        private string _ParentKey = "";
        [DataMember]
        public string ParentKey
        {
            get
            {
                return _ParentKey;
            }
            set
            {
                if (_ParentKey != value)
                {
                    _ParentKey = value;

                }
            }
        }

        private int _Sequence = 0;
        [DataMember]
        public int Sequence
        {
            get
            {
                return _Sequence;
            }
            set
            {
                if (_Sequence != value)
                {
                    _Sequence = value;

                }
            }
        }

        private string _Name = "";
        [DataMember]
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                if (_Name != value)
                {
                    _Name = value;

                }
            }
        }

        private string _Value = "";
        [DataMember]
        public string Value
        {
            get
            {
                return _Value;
            }
            set
            {
                if (_Value != value)
                {
                    _Value = value;

                }
            }
        }

        private string _Code = "";
        [DataMember]
        public string Code
        {
            get
            {
                return _Code;
            }
            set
            {
                if (_Code != value)
                {
                    _Code = value;
                }
            }
        }

        private string _Key = "";
        [DataMember]
        public string Key
        {
            get
            {
                return _Key;
            }
            set
            {
                if (_Key != value)
                {
                    _Key = value;
                }
            }
        }


    }
}
